#pragma once
#include "sprite.h"

class CFlower :
    public CSprite
{
public:
    CFlower(void);
    CFlower(CPoint& postion);
    ~CFlower(void);

#ifndef _SERVER
    virtual void Draw();
#endif
    BOOL Consume();
    INT& GetPollenNum();

    void SerializeSubClass(CMarkup& xmlMessage);
    BOOL DeSerializeSubClass(CMarkup& xmlMessage);

    CPoint& GetCenterPos();
    void HarvestPollen();
    BOOL IsDie();

private:
    CPoint m_CenterPos;
    INT m_nPollenNum;
    INT m_nLife;
};
